﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AudioManager : MonoBehaviour {
    public AudioClip failClip;
    public AudioClip successClip;
    public AudioClip clickClip;
    // Use this for initialization
    public static AudioManager Instance;
    private void Awake()
    {
        Instance = this;
    }
    public void PlaySuccess()
    {
        GetComponent<AudioSource>().PlayOneShot(failClip);
    }

    public void PlayFail()
    {
        GetComponent<AudioSource>().PlayOneShot(successClip);
    }

    public void PlayClick()
    {
        GetComponent<AudioSource>().PlayOneShot(clickClip);
    }
}
